package com.offline.module.goods;

import com.offdissys.common.core.response.Result;
import com.offdissys.common.core.web.domain.ResultBuilder;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ZhangHaiWen
 * @title: GoodsModuleApplication
 * @projectName offline-discount-sys
 * @description: 商品服务
 * @date 2022/3/2120:13
 */
// basePackages @FeginClient注解在哪个包下，值就是哪个
@EnableFeignClients(basePackages = "com.offdisys.feignapi")
@RestController
@SpringBootApplication
public class GoodsModuleApplication {


    public static void main(String[] args) {
        SpringApplication.run(GoodsModuleApplication.class);
    }

    @GetMapping(value = "/")
    public Object home(){
        return ResultBuilder.SUCCESS("GoodsModuleApplication start success!");
    }


}
